﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SubmitPanel.ascx.cs" Inherits="Process.SubmitPanel" %>
<%@ Register assembly="MyHelper" namespace="MyHelper.Web.UI" tagprefix="cc1" %>
<div>

<table style="width: 100%;">
        <tr>
            <td >
                <cc1:MyLabel ID="lblApprovalHistory" runat="server">
                    审批历史记录：</cc1:MyLabel></td>
        </tr>
        <tr>
            <td >                
                <table border="0" cellpadding="0" cellspacing="0" class="listTable">
                <tr class="bg" id="trApprovalHistory" runat="server">
                    <th class="borderL">
                        步骤
                    </th>
                    <th>
                        审批人
                    </th>
                    <th>
                        审批动作
                    </th>
                    <th>
                        备注
                    </th>
                   <th>
                        审批日期
                    </th>
                </tr>
                <asp:Repeater ID="gridApprovalHistory" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%#Eval("STEP_NAME")%>
                            </td>
                            <td>
                                 <%#Eval("APPROVER")%>
                            </td>
                            <td>
                                <%#Eval("ACTION")%>
                            </td>
                            <td>
                                <%#Eval("COMMENTS")%>
                            </td>
                            <td>
                                <%#Convert.ToDateTime(Eval("APPROVE_DATE")).ToString("yyyy-MM-dd HH:mm:ss")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                
            </table>
            </td>
        </tr>
        <tr>
            <td >
                
                <cc1:MyLabel ID="lblComments" runat="server">
                    审批意见：</cc1:MyLabel>
                
            </td>
        </tr>
        <tr>
            <td >
                
                <cc1:MyTextBox ID="txtComments" runat="server" Height="85px" 
                    TextMode="MultiLine" Width="738px"></cc1:MyTextBox>
                
            </td>
        </tr>
        <tr>
            <td >
                
                    <cc1:MySubmitButton ID="btnSubmit" runat="server" Text="提交" 
                        AfterClientClick="alert('SUBMIT_SUCCESS');window.close();" 
                        onclientclick="return confirm('SUBMIT_CONFIRM');" />
                    <cc1:MyReturnButton ID="btnReturn" runat="server" Text="退回上一步" 
                        Visible="False" onclientclick="return confirm('RETURN_CONFIRM');" />
                    <cc1:MyReturnApplicantButton ID="btnReturnApplicant" runat="server" 
                        Text="退回发起人" Visible="False" 
                        onclientclick="return confirm('RETURN_CONFIRM');" />
                    <cc1:MyRejectButton ID="btnReject" runat="server" Text="拒绝" 
                        Visible="False" onclientclick="return confirm('REJECT_CONFIRM');" />
                    <cc1:MyButton ID="btnClose" runat="server" Text="关闭" OnClientClick="window.close();return false;" />
             
            </td>
        </tr>
    </table>
</div>